using System;
using System.Windows.Forms;

namespace CQRS.Example.SampleApplication.Views
{
    public class BaseForm : Form
    {
        protected BaseForm()
        {
        }

        protected void LoadDialog(Form dialogToLoad)
        {
            dialogToLoad.ShowDialog();
        }

        protected bool ParseLong(Control control, out long result)
        {
            return Int64.TryParse(control.Text, out result);
        }

        protected bool ParseInt(Control control, out int result)
        {
            return Int32.TryParse(control.Text, out result);
        }
    }
}